package com.damuzee.weixin.config.service.impl;

import javax.annotation.Resource;

import org.mybatis.sql.condition.Criteria;
import org.mybatis.sql.page.Page;
import org.springframework.stereotype.Service;

import com.damuzee.weixin.config.domain.AccoutBind;
import com.damuzee.weixin.config.persistence.AccoutBindMapper;
import com.damuzee.weixin.config.service.IAccoutBindService;

@Service
public class AccoutBindServiceImpl implements IAccoutBindService {

	public void saveAccoutBind(AccoutBind accoutBind) {
		accoutBindMapper.save(accoutBind);
	}
 
	public Page<AccoutBind> getAccoutBindByPage(Page<AccoutBind> page,
			Criteria cri) {
		 
		return accoutBindMapper.selectPageByCriteria(page, cri);
	}

	@Resource
	public AccoutBindMapper accoutBindMapper;
}